<div id="log" style="width:500px;">
    <table class="data list" cellpadding="0" cellspacing="1" width="100%" style="margin-bottom:0;">
        <?php foreach ($list as $k => $v) { ?>
            <tr>
                <td class="datatitle">
                    <?= $v['memo'] ?>
                </td>
                <td width="30"><?= $v['amount'] > 0 ? '<font color=green>收入</font>' : '<font color=red>支出</font>' ?></td>
                <td width="30"><font color="<?= $v['amount'] > 0 ? 'green' : 'red' ?>"><?= abs($v['amount']) ?></font></td>
                <td width="90" class="dataedit">
                    <?= format_time($v['createtime']) ?>
                </td>
            </tr>
        <?php } ?>
        <tr>
            <td colspan="4" style="padding:0;">
                <div class="pager graybg ajax" output="#log">
                    <?= $pagelist ?> 
                </div>
            </td>
        </tr>
    </table>
</div>
<script type="text/javascript">
    KS.common.load('account.log');
</script>